<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      div {
        width: 100px;
        height: 100px;
        border: 1px solid red;
      }

      span {
        border: 1px solid blue;
        /* 行内元素不能修改宽高 如果必须改行内元素宽高的话，需要改成块级或行内块*/
        display: inline-block;
        width: 100px;
        height: 100px;
      }

      img {
        width: 100px;
        height: 100px;
        /* block 块级元素 独占一行 可以修改宽高 包括h1-h6 p div */
        /* inline 行内元素 共占一行 不能修改宽高 包括span b i u s 超链接a */
        /* inline-block 行内块元素 共占一行并可以修改宽高 包括input img */
        display: inline-block;
      }

      a {
        background-color: #0aa1ed;
        width: 132px;
        height: 40px;
        display: block;
        text-align: center;
        line-height: 40px;
        color: white;
        text-decoration: none;
        font-size: 20px;
        border-radius: 2px;
      }
    </style>
  </head>

  <body>
    <a href="">查看详情</a>
    <img src="../2.webp" alt="" />
    <img src="../2.webp" alt="" />
    <img src="../2.webp" alt="" />
    <div>div1</div>
    <div>div2</div>
    <div>div3</div>
    <span>span1</span>
    <span>span2</span>
    <span>span3</span>
  </body>
</html>
